This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: DialogBox cannot be used in this context; a document must be selected ~Patti Chufoolit 8.Oct.03 04:50 AM a Web browser Domino Designer All ReleasesAll Platforms
Dave,
You need to pass the other doc as a value to the dialogue method. Example#3 in the help show an example. You need to setup an instance of the 2nd database and pass a reference of the doc to the dialogue method. I modified it to suit your needs below
EXAMPLE#3 from designer help.
Click(Source as Button)
Dim db As NotesDatabase
Dim s As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim view As NotesView
Dim doc As NotesDocument
DIM db as new notesdatabase("yourserver","yourdatabase")
Set view = db.GetView( "yourview" )
Set doc = view.GetFirstDocument
Call workspace.DialogBox _
("Dialog Box", True, True, False, False, False, _
False, "Dialog Box", DOC)
Call doc.save (True, False)